From 770725fbdcc8ea7bf47ef0af5a43a239bef98ff6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 16 Aug 2022 15:31:41 -0700 Subject: sveltekit route migration --- src/routes/[username]/dashboard/+page.svelte | 121 +++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 src/routes/[username]/dashboard/+page.svelte (limited to 'src/routes/[username]/dashboard') diff --git a/src/routes/[username]/dashboard/+page.svelte b/src/routes/[username]/dashboard/+page.svelte new file mode 100644 index 00000000..d056399f --- /dev/null +++ b/src/routes/[username]/dashboard/+page.svelte @@ -0,0 +1,121 @@ + + +{#if $user} + + +
+

{$user.username}

+ Address goes here +
+ +
+
+

+ {withdrawing ? 'Withdraw' : 'Dashboard'} +

+ {#if !withdrawing} + Bitcoin Price: {$rate ? btcPrice : 'fetching rate...'} + {$preferredCurrency} + + + Data from Binance. + + +

+ ACCOUNT BALANCE +

+ + {$rate ? accountBalanceFiat : 'fetching rate...'} + + {accountBalanceSats} SATS + + +

You will be charged a 1% withdrawal fee on the amount.

+ {:else} +
+ + +
+ + +
+ +
+ +